<extend name="Public/base"/>
<block name="content">
    <div class="row-fluid">
        <div class="block">
            <div class="navbar navbar-inner block-header">
                <div class="muted pull-left">科技查新机构列表</div>
            </div>
            <div class="block-content collapse in">
                <div class="span12">
                    <div class="table-toolbar">
                        <div class="btn-group">
                            <a href="{:U('Unit/add')}"><button class="btn btn-success">添加机构<i class="icon-plus icon-white"></i></button></a>
                        </div>
                    </div>
                </div>
                <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>机构名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="unit" id="vo" empty="对不起，暂时没有查询到您所查询的数据">
                        <tr class="odd gradeX">
                            <td>{$vo.id}</td>
                            <td>{$vo.name}</td>
                            <td class="center">
                                <if condition="$vo['status'] eq 0">
                                    <button  class="ajax-get btn btn-primary" href="{:U('doAuditUnit',array('id'=>$vo['id']))}">通过审核</button>
                                </if>
                                <a href="{:U('edit',array('id'=>$vo['id']))}">查看机构</a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</block>